package routers

import (
	"github.com/gin-gonic/gin"
	"wx-api/adx-api/handlers"
	"wx-api/adx-api/services/se_ssptemplate"
)

func Route_SspTemplate(router *gin.RouterGroup) {
	adx_template := router.Group("/ssptemplate")
	adx_template.GET("/list", func(c *gin.Context) {
		se_ssptemplate.List(handlers.NewBaseController(c))
	})
	adx_template.POST("/add", func(c *gin.Context) {
		se_ssptemplate.Add(handlers.NewBaseController(c))
	})
	adx_template.POST("/edit", func(c *gin.Context) {
		se_ssptemplate.Edit(handlers.NewBaseController(c))
	})
	adx_template.GET("/info", func(c *gin.Context) {
		se_ssptemplate.Info(handlers.NewBaseController(c))
	})
	adx_template.GET("/flag", func(c *gin.Context) {
		se_ssptemplate.Flag(handlers.NewBaseController(c))
	})
	adx_template.GET("/stats", func(c *gin.Context) {
		se_ssptemplate.Stats(handlers.NewBaseController(c))
	})
	adx_template.GET("/all", func(c *gin.Context) {
		se_ssptemplate.TempAll(handlers.NewBaseController(c))
	})
}
